<template>
  <div id="app" class="clearfix">
    <router-view></router-view>
    <!-- 全局的loading动画 -->
    <loading v-show="this.$store.getters.showLoading"></loading>
  </div>
</template>
<script>
import loading from '@/components/indexConent/loading'
import $$ from 'jquery'
export default {
  name: 'App',
  // activated: function () {
  //   this.$setgoindex()
  // }
  components:{loading},
  beforeCreate(){
    var sess = window.sessionStorage
    // for(var i=0;i<sess.length;i++){
    //   if(sess.key(i) != 'codeS' &&  sess.key(i) != 'token' && sess.key(i) != 'balance'){
    //     sess.removeItem(sess.key(i))
    //   }
    // }

    sessionStorage.removeItem('MallItem')   ///商城
    sessionStorage.removeItem('userpicture')   ///头像
  },
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  width:100%;
  height:100%;
  position: relative;
}

</style>
